import Vue from 'vue'
import Router from 'vue-router'
import Home from './views/Home.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home
    },
    {
      path: '/file',
      name: 'file',
      component: () => import(/* webpackChunkName: "file" */ './views/File.vue')
    },
    {
      path: '/file_reader',
      name: 'file_reader',
      component: () => import(/* webpackChunkName: "file" */ './views/test/FileReader.vue')
    },
    {
      path: '/mysql_test',
      name: 'mysql_test',
      component: () => import(/* webpackChunkName: "mysql_test" */ './views/MySQL.vue')
    },
    {
      path: '/sqlite_test',
      name: 'sqlite_test',
      component: () => import(/* webpackChunkName: "sqlite_test" */ './views/Sqlite.vue')
    },
    {
      path: '/lowdb_test',
      name: 'lowdb_test',
      component: () => import(/* webpackChunkName: "lowdb_test" */ './views/LowdbTest.vue')
    },
    {
      path: '/printer_test',
      name: 'printer_test',
      component: () => import(/* webpackChunkName: "printer_test" */ './views/Printer.vue')
    },
    {
      path: '/screenshot',
      name: 'screenshot',
      component: () => import(/* webpackChunkName: "screenshot" */ './views/test/Screenshot.vue')
    },
    {
      path: '/httpserver',
      name: 'httpserver',
      component: () => import(/* webpackChunkName: "httpserver" */ './views/test/HttpServer.vue')
    },
    {
      path: '/about',
      name: 'about',
      // route level code-splitting
      // this generates a separate chunk (about.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import(/* webpackChunkName: "about" */ './views/About.vue')
    }
  ]
})
